package xyz.bali16.module.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@TableName(value = "blog_tag")
@Accessors(chain = true)
public class Tag {

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@NotBlank
	private String name;
	@NotBlank
	private String url;

	@NotBlank
	private Integer fix;

	@NotBlank
	private Integer seq;
	@TableField(exist = false)
	private Long count;

}